package com.dbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 产品
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product")
public class Product {
    @TableId(value = "proid",type = IdType.UUID)
    private String proid;
    @TableField(value = "proname")
    private String proname;//产品名称
    @TableField(value = "protype")
    private Integer protype;//产品类型
    @TableField(value = "proguige")
    private  String proguige;//规格
    @TableField(value = "projinjia")
    private Double projinjia;//产品进价
    @TableField(value = "proshoujia")
    private Double proshoujia;//产品售价
    @TableField(value = "alarmnumber")
    private String alarmnumber;//警报数量
    @TableField(value = "prodetails")
    private String prodetails;//商品详情
    @TableField(value = "proimg")
    private String proimg;//商品图片
    @TableField(value = "prodanwei")
    private String prodanwei;//商品单位
    @TableField(value = "pronumber")
    private Integer pronumber;
    @TableField(value = "prosupplier")
    private String prosupplier;

    @TableField(value = "wareid")
    private String wareid;
    @TableField(exist = false)
    private ProductType productType;//产品类型
    @TableField(exist = false)
    private Supplier supplier;//产品类型
    @TableField(exist = false)
    private Warehouse warehouse;
}
